//
//  ThemeButton.m
//  Jyxt
//
//  Created by 刘日 on 17/5/17.
//  Copyright © 2017年 DaLian Rental Housing Management. All rights reserved.
//

#import "ThemeButton.h"

@implementation ThemeButton

- (void)drawRect:(CGRect)rect{
    self.layer.cornerRadius = 4;
    self.clipsToBounds = YES;
}

- (void)setEnabled:(BOOL)enabled{
    [super setEnabled:enabled];
    self.backgroundColor = enabled ? [UIColor themeColor] : LKColorMakeWithHexStringNoTransparent(@"#9DB5F1");
}

@end
